package be.vsko.zelfevaluatie.jackson.mapping;

import be.vsko.zelfevaluatie.framework.Survey;
import be.vsko.zelfevaluatie.rest.RoaServlet;

public class SimpleSurvey extends Resource{
	private Long key;
	private String name;
	private String href;
	
	public SimpleSurvey(Survey survey, RoaServlet servlet) {
		this.key = survey.getKey();
		this.name = survey.getName();
		this.href = servlet.getHref("/surveys/"+survey.getKey());
	}

	public Long getKey() {
		return key;
	}

	public String getName() {
		return name;
	}

	public String getHref() {
		return href;
	}
}
